﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SMG.Domain.Specifications;
using SMG.Domain.Model.System;

namespace SMG.Domain.Specifications.System
{
    public class DictKeyEqualSpecification : Specification<SysDict>
    {
        private readonly String _dictKey;
        public DictKeyEqualSpecification(String dictKey) {
            this._dictKey = dictKey;
        }

        public override global::System.Linq.Expressions.Expression<Func<SysDict, bool>> GetExpression()
        {
            return d => d.DictKey == this._dictKey;
        }
    }
}
